package org.example.minsuapi.controller;

import org.example.minsuapi.pojo.price_num;
import org.example.minsuapi.service.pricenumService;
import org.example.minsuapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class pricenumController {
    @Autowired
    private  pricenumService pricenumService ;
    @GetMapping("/queryAllpricenum")
    public ResponseResult<List<price_num>> queryAllpricenum(){
        List<price_num>pf =pricenumService.queryAllpricenum();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
